#include "free_math.h"

const TickType_t xDelay1ms = pdMS_TO_TICKS(1);
const TickType_t xDelay5ms = pdMS_TO_TICKS(5);
const TickType_t xDelay20ms = pdMS_TO_TICKS(20);
const TickType_t xDelay50ms = pdMS_TO_TICKS(50);
const TickType_t xDelay100ms = pdMS_TO_TICKS(100);
const TickType_t xDelay1s = pdMS_TO_TICKS(1000);
const TickType_t xDelay3s = pdMS_TO_TICKS(3000);

uint8_t count_ones_uint8(uint8_t value) {
	
	uint8_t count = 0;
	while(value) {
		value &= value - 1;
		count++;
	}
	
	return count;
}



